sap.ui.define([
    'jquery.sap.global', 'sap/ui/core/mvc/Controller', 'sap/ui/model/json/JSONModel'
], function(jQuery, Controller, JSONModel, Formatter) {

    "use strict";

    var creationCtrl = Controller.extend("sap.lx.nba.team.show", {

        onInit: function(event) {

/*			var model = new JSONModel({
				
					list:[{
						icon:"http://mat1.gtimg.com/sports/nba/logo/1602/25.png",
						name:"thunder",
						location:"china",
						birth:"today",
						champion:"two",
						coach:"lx"
					}]
						
					}
			
			) ;
			*/

            var model = new JSONModel();

            model.loadData("../get/team");

            this.getView().setModel(model, "team");
            this.model_apps = model;

        },
        getRouter: function() {
            return sap.ui.core.UIComponent.getRouterFor(this);
        },
        onNavButtonPress: function() {

            history.go(-1);

        }

    });

    return creationCtrl;

});
